cs230-code-examples icon indicating copy to clipboard operation
cs230-code-examples copied to clipboard

Code examples in pyTorch and Tensorflow for CS230

Results 20 cs230-code-examples issues
Sort by recently updated
recently updated
newest added

In Windows OS, folder names in a path join together with back slash [ \ ] instead of slash [ / ] like this: > C:\Program Files\NVIDIA GPU Computing Toolkit...

When running the code, I found that this particular layer (and only this one) fails when the batch size is set to 1. https://github.com/cs230-stanford/cs230-code-examples/blob/159df10a6187c7e1d6ec949c8e06d7f67f8f1cd2/pytorch/vision/model/net.py#L78

https://github.com/cs230-stanford/cs230-code-examples/blob/159df10a6187c7e1d6ec949c8e06d7f67f8f1cd2/pytorch/vision/train.py#L51

Before Pytorch 0.4.0., loss was a Variable wrapping a tensor of size (1,), but in 0.4.0 loss is now a scalar and has 0 dimensions. Indexing into a scalar doesn’t...

There is a little issue in `cs230-code-examples/tensorflow/nlp/evaluate.py`: You use the dev set for evaluation: ```python path_eval_sentences = os.path.join(args.data_dir, 'dev/sentences.txt') path_eval_labels = os.path.join(args.data_dir, 'dev/labels.txt') ``` But later you iterate over the...

https://github.com/cs230-stanford/cs230-code-examples/blob/159df10a6187c7e1d6ec949c8e06d7f67f8f1cd2/tensorflow/nlp/model/model_fn.py#L68 The computation of accuracy and the metrics of accuracy below are lack of masking. In this way the accuracy could be wrong because of wrong predictions of padded tokens.

Hi, the NER example has an accuracy of 0.82 or 0.78 after running for 10 epochs on the toy 10 values dataset. I was using this code to startup a...

Hello, I just added an example to the cs230 code for simple prediction of a set of images. For this, I added the following files according to the train/training and...

Bumps [tensorflow](https://github.com/tensorflow/tensorflow) from 1.15.0 to 2.11.1. Release notes Sourced from tensorflow's releases. TensorFlow 2.11.1 Release 2.11.1 Note: TensorFlow 2.10 was the last TensorFlow release that supported GPU on native-Windows. Starting...

dependencies

Bumps [tensorflow](https://github.com/tensorflow/tensorflow) from 1.15.0 to 2.11.1. Release notes Sourced from tensorflow's releases. TensorFlow 2.11.1 Release 2.11.1 Note: TensorFlow 2.10 was the last TensorFlow release that supported GPU on native-Windows. Starting...

dependencies